<?php
namespace App\Models\Entity\wxbox;

use Swoft\Db\Model;
use Swoft\Db\Bean\Annotation\Column;
use Swoft\Db\Bean\Annotation\Entity;
use Swoft\Db\Bean\Annotation\Id;
use Swoft\Db\Bean\Annotation\Required;
use Swoft\Db\Bean\Annotation\Table;
use Swoft\Db\Types;

/**
 * 微信服务器配置验证表

 * @Entity()
 * @Table(name="wxconfig")
 * @uses      Wxconfig
 */
class Wxconfig extends Model
{
    /**
     * @var int $id 
     * @Id()
     * @Column(name="id", type="integer")
     */
    private $id;

    /**
     * @var string $wxname 微信号如ijisong
     * @Column(name="wxname", type="string", length=20)
     * @Required()
     */
    private $wxname;

    /**
     * @var string $token token
     * @Column(name="token", type="string", length=20)
     * @Required()
     */
    private $token;

    /**
     * @var int $addtime 添加时间
     * @Column(name="addtime", type="integer", default=0)
     */
    private $addtime;

    /**
     * @var int $checktime 验证时间按
     * @Column(name="checktime", type="integer", default=0)
     */
    private $checktime;

    /**
     * @var int $status 0,未验证，1已验证
     * @Column(name="status", type="smallint", default=0)
     */
    private $status;

    /**
     * @var string $content 
     * @Column(name="content", type="string", length=200)
     * @Required()
     */
    private $content;

    /**
     * @var string $appid appid
     * @Column(name="appid", type="string", length=36)
     * @Required()
     */
    private $appid;

    /**
     * @var string $secret crypt 加密消息key
     * @Column(name="secret", type="string", length=64)
     * @Required()
     */
    private $secret;

    /**
     * @var int $useStatus 1使用者0禁用
     * @Column(name="use_status", type="integer", default=1)
     */
    private $useStatus;

    /**
     * @var string $qrimg 
     * @Column(name="qrimg", type="string", length=150)
     * @Required()
     */
    private $qrimg;

    /**
     * @var string $name 
     * @Column(name="name", type="string", length=50)
     * @Required()
     */
    private $name;

    /**
     * @var int $vipType 0:默认不处理，1：补充信息自动认证
     * @Column(name="vip_type", type="smallint", default=0)
     */
    private $vipType;

    /**
     * @var int $visit 浏览方式访问设置1会员0所有
     * @Column(name="visit", type="smallint", default=0)
     */
    private $visit;

    /**
     * @var string $rsaPublicKey 
     * @Column(name="rsa_public_key", type="text", length=65535)
     */
    private $rsaPublicKey;

    /**
     * @var int $aid 
     * @Column(name="aid", type="integer", default=0)
     */
    private $aid;

    /**
     * @param int $value
     * @return $this
     */
    public function setId(int $value)
    {
        $this->id = $value;

        return $this;
    }

    /**
     * 微信号如ijisong
     * @param string $value
     * @return $this
     */
    public function setWxname(string $value): self
    {
        $this->wxname = $value;

        return $this;
    }

    /**
     * token
     * @param string $value
     * @return $this
     */
    public function setToken(string $value): self
    {
        $this->token = $value;

        return $this;
    }

    /**
     * 添加时间
     * @param int $value
     * @return $this
     */
    public function setAddtime(int $value): self
    {
        $this->addtime = $value;

        return $this;
    }

    /**
     * 验证时间按
     * @param int $value
     * @return $this
     */
    public function setChecktime(int $value): self
    {
        $this->checktime = $value;

        return $this;
    }

    /**
     * 0,未验证，1已验证
     * @param int $value
     * @return $this
     */
    public function setStatus(int $value): self
    {
        $this->status = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setContent(string $value): self
    {
        $this->content = $value;

        return $this;
    }

    /**
     * appid
     * @param string $value
     * @return $this
     */
    public function setAppid(string $value): self
    {
        $this->appid = $value;

        return $this;
    }

    /**
     * crypt 加密消息key
     * @param string $value
     * @return $this
     */
    public function setSecret(string $value): self
    {
        $this->secret = $value;

        return $this;
    }

    /**
     * 1使用者0禁用
     * @param int $value
     * @return $this
     */
    public function setUseStatus(int $value): self
    {
        $this->useStatus = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setQrimg(string $value): self
    {
        $this->qrimg = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setName(string $value): self
    {
        $this->name = $value;

        return $this;
    }

    /**
     * 0:默认不处理，1：补充信息自动认证
     * @param int $value
     * @return $this
     */
    public function setVipType(int $value): self
    {
        $this->vipType = $value;

        return $this;
    }

    /**
     * 浏览方式访问设置1会员0所有
     * @param int $value
     * @return $this
     */
    public function setVisit(int $value): self
    {
        $this->visit = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setRsaPublicKey(string $value): self
    {
        $this->rsaPublicKey = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setAid(int $value): self
    {
        $this->aid = $value;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * 微信号如ijisong
     * @return string
     */
    public function getWxname()
    {
        return $this->wxname;
    }

    /**
     * token
     * @return string
     */
    public function getToken()
    {
        return $this->token;
    }

    /**
     * 添加时间
     * @return int
     */
    public function getAddtime()
    {
        return $this->addtime;
    }

    /**
     * 验证时间按
     * @return int
     */
    public function getChecktime()
    {
        return $this->checktime;
    }

    /**
     * 0,未验证，1已验证
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * appid
     * @return string
     */
    public function getAppid()
    {
        return $this->appid;
    }

    /**
     * crypt 加密消息key
     * @return string
     */
    public function getSecret()
    {
        return $this->secret;
    }

    /**
     * 1使用者0禁用
     * @return mixed
     */
    public function getUseStatus()
    {
        return $this->useStatus;
    }

    /**
     * @return string
     */
    public function getQrimg()
    {
        return $this->qrimg;
    }

    /**
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * 0:默认不处理，1：补充信息自动认证
     * @return int
     */
    public function getVipType()
    {
        return $this->vipType;
    }

    /**
     * 浏览方式访问设置1会员0所有
     * @return int
     */
    public function getVisit()
    {
        return $this->visit;
    }

    /**
     * @return string
     */
    public function getRsaPublicKey()
    {
        return $this->rsaPublicKey;
    }

    /**
     * @return int
     */
    public function getAid()
    {
        return $this->aid;
    }

}
